package com.apop.accompanyH5.order.domain.vo;

import com.apop.accompanyH5.order.enums.OrderStateEnum;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 订单返回对象
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class OrderRespVO {

    private Long id;
    // 下单账号
    private String account;
    // 订单编号
    private String code;
    private String demand;
    private String receiveAddress;
    private String contact;
    private Integer hospitalId;
    private String hospitalName;
    private Long startTime;
    private Integer stuffId;
    private String stuffName;
    /**
     * 订单状态
     *
     * @see OrderStateEnum
     */
    private Integer status;
    // 订单支付链接
    private String payLink;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /**
     * 最后更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
